package com.kkb.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.sql.DataSource;

@RestController
public class MyTestSpringBoot {
    @Resource
    private DataSource dataSource;

    @RequestMapping("/test")
    public String test(){
        return "test" + dataSource;
    }
}
